package com.googlecode.bip.dao.utils;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Create an object from {@link ResultSet}
 *
 * @see ListableGetter
 */
public interface ListableInstance<T>
{
    /**
     * Create an T item from a {@link ResultSet}
     *
     * @param resultSet a valid {@link ResultSet}
     * @return T new item
     * @throws SQLException if any
     */
    public T newInstance( ResultSet resultSet ) throws SQLException;

}
